Most actions you perform on a dock - such as changing its size and position or rearranging items - can now be undone so you can 'rewind' any changes you make that you don't want. Using the "Redo" command, you can make the changes again one by one.
Accidentally clean up a dock? Just undo it!